package code.c01;

import java.util.Scanner;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/9/1 11:25
 * @package PACKAGE_NAME
 * @description 文件说明
 */

public class Switch {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入您的成绩：");
        int score =  scanner.nextInt();

        switch (score /10){
            case 10:
            case 9:
                System.out.println("成绩优秀");
                break;
            case 8:
                System.out.println("成绩良好");
                break;
            case 7:
                System.out.println("成绩中等");
                break;
            case 6:
                System.out.println("成绩及格");
                break;
            default:
                System.out.println("成绩不合格");
        }
    }
}
